<template>
  <a-card title="还款记录" class="card-margin">
    <RepaymentTable :data="loanDetails.repayments" />

    <div class="title-container">
      <span>应还总金额：${{ loanDetails.amount }}</span>
      <span>已结清金额：${{ loanDetails.re_amount }}</span>
      <span>待还金额：${{ loanDetails.su_amount }}</span>
    </div>
  </a-card>
</template>

<script>
import RepaymentTable from '../table/Repayment.vue'
import props from '../props'

export default {
  mixins: [props],

  components: {
    RepaymentTable,
  },
}
</script>

<style lang="scss" scoped>
.title-container {
  display: flex;
  justify-content: space-around;
  text-align: left;
  margin-top: $margin-md;
  span {
    font-weight: bold;
    width: 100%;
    font-size: $font-size-md;
  }
}
</style>
